package org.origin.ferret.system.model.dto.client;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 更新系统渠道数据-实体类
 *
 * @author ferret
 * @version 2024-05-08
 */
@Data
@Schema(description = "更新系统渠道数据-实体类")
public class SysClientUpdateDto {

    @NotNull(message = "主键ID不能为空")
    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @Schema(description = "上级", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long parentId;

    @Schema(description = "类型")
    private Integer type;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "路径")
    private String path;

    @Schema(description = "权限")
    private String permit;

    @Schema(description = "组件")
    private String component;

    @Schema(description = "显示")
    private Integer display;

    @Schema(description = "顺序")
    private Integer sort;

    @Schema(description = "令牌有效时间（分钟）")
    private Integer liveTime;
}
